Salesforce Lightning Platform Enterprise Architecture, Third Edition by Andrew Fawcett

Salesforce Lightning Platform Enterprise Architecture, Third Edition by Andrew Fawcett

Author:Andrew Fawcett [Andrew Fawcett]
Language: eng
Format: epub
Publisher: Packt Publishing
Published: 2019-11-04T09:10:50+00:00


Client-server communication

Fundamentally, any communication between the user's chosen device (client) and the data and logic available on the Salesforce server occurs using the HTTP protocol. As a Lightning developer, you rarely get involved with the low-level aspects of forming the correct HTTP POST or HTTP GET request to the server and parsing the responses:

For Lightning Aura Components, the $A.enqueueAction JavaScript method can be called from a component's client-side controller method to access the Apex code.

For Lightning Web Components, the @wire protocol can be used to bind properties in your client-side controller to methods in your Apex code.

For Visualforce, the apex:commandButton and apex:actionFunction components can be used to invoke Apex code.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.